package testPaperCTCS.jsonGuessTesting;

import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import lancooUpLoad.PaperInfor;
import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2017/8/4/004.
 */

public class GuessTestingParam extends BaseApi {



    public GuessTestingParam(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getGuessTestingJson(UserInfo.StuId,
                UserInfo.SubjectId,UserInfo.StageNo,UserInfo.PaperFrom, PaperInfor.PaperID);
    }
}